# -*- coding: utf-8 -*-

from myDB import SessionLocal
from myModel import Model

# 注入数据
with SessionLocal() as session:  # 使用with 语句自动管理会话
    abc = Model(name='Abc')
    session.add(abc)
    session.commit()
